package FirstStage.DuoTai;

public class Worker extends Empolyee{
    public Worker(String name, double salary) {
        super(name, salary);
    }

    public void work(){
        System.out.println("普通员工 "+ getName() + " is working");
    }

    public double getAnnual(){
        return super.getAnnual(); // 普通员工没有其他收入,直接调用父类
    }
}
